<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header"></head>


<body>
<nav th:replace="layouts::navbar"></nav>
<div class="container">
    <h3>主面板</h3>
    <p th:text="${versionNumber}"></p>
    <hr>
    <div class="row">
        <div class="col-md-10">
        <h4>当前音乐类别</h4>
            <table class="table table-bordered table-striped">
                <thead class="thead-dark">
            <tr>
                <th>音乐类别名称</th>
<!--                <th>推荐歌手或团队</th>-->
<!--                <th>备注</th>-->
<!--                <th>音乐类别描述</th>-->
                <th>推荐次数</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="aMusic : ${musicQuantities}">
                <td th:text="${aMusic.Label}"></td>
<!--                <td th:text="${aMusic.singer}"></td>-->
<!--                <td th:text="${aMusic.category}"></td>-->
<!--                <td th:text="${aMusic.description}"></td>-->
                <td th:text="${aMusic.value}"></td>

            </tr>
            </tbody>
        </table>
        </div>
    </div>




    <h4>当前用户</h4>
    <div class="row">
        <div class="col-md-10">
    <table class="table table-bordered table-striped">
        <thead class="thead-dark">
        <tr>
            <th>昵称</th>
<!--            <th>性别</th>-->
<!--            <th>年龄</th>-->
            <th>邮箱</th>
            <th>新建音乐类别个数</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="aUnit : ${unitMusics}">
            <td th:text="${aUnit.username}"></td>
<!--            <td th:text="${aUser.gender}"></td>-->
<!--            <td th:text="${aUser.age}"></td>-->
            <td th:text="${aUnit.email}"></td>
            <td th:text="${aUnit.musicCount}"></td>
        </tr>
        </tbody>
    </table>
</div>
    </div>


        <h4>当前动态</h4>
    <div class="row">
        <div class="col-md-10">
            <table class="table table-bordered table-striped">
                <thead class="thead-dark">
            <tr>
                <th>标题</th>
                <th>发布时间</th>
                <th>发布者ID</th>
                <th>内容</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="aForum : ${forums}">
                <td th:text="${aForum.title}"></td>
                <td th:text="${aForum.postTime}"></td>
                <td th:text="${aForum.unitId}"></td>
                <td th:text="${aForum.content}"></td>
            </tr>
            </tbody>
        </table>
    </div>
    </div>

    <h4>当前用户评论</h4>
    <div class="row">
        <div class="col-md-10">
            <table class="table table-bordered table-striped">
                <thead class="thead-dark">
                <tr>
                    <th>昵称</th>
                    <th>发布者ID</th>
                    <th>评论标题</th>
                    <th>评论</th>

                </tr>
                </thead>
                <tbody>
                <tr th:each="aInteraction : ${interactions}">
                    <td th:text="${aInteraction.username}"></td>
                    <td th:text="${aInteraction.unitId}"></td>
                    <td th:text="${aInteraction.title}"></td>
                    <td th:text="${aInteraction.comment}"></td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

</div>
</body>
</html>